<?php
/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: 2019/9/17
 * Time: 15:34
 */
use think\facade\Route;

Route::group('area', function () {
//    根据pid获取下级地址
    Route::post('getareabypid', 'area/getAreaByPid')->middleware('required', ['parentId']);
//    根据name获取id
    Route::post('getidbyname', 'area/getidbyname')->middleware('required', ['region']);
//    获取全部地址信息
    Route::post('all', 'area/all');
})->prefix('area/')->middleware('sign', 1);